﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Web.Configuration;
using OnlineRailway.EF;
using OnlineRailway.DAL;


namespace OnlineRailway.Administrator
{
    
    public partial class TrainType : System.Web.UI.Page
    {
        private static String Str =
            WebConfigurationManager.ConnectionStrings["RailwayOnlineConnectionString"].ConnectionString;
        private SqlConnection conn = new SqlConnection(Str);
        private SqlCommand cmd;
        private SqlDataAdapter dataAdapter;
        private DataSet ds;
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
       

        protected void btnSigin_Click(object sender, EventArgs e)
        {
            
            


        }
        private string Encryption(String pass)
        {
            String rs = pass;
            for (int i = 0; i < 4; i++)
            {
                if (i!=0)
                {
                    rs += System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(rs.Trim(), "SHA1");
                    rs += System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(rs.Trim(), "MD5");
                }
                else
                {
                    rs = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(rs.Trim(), "SHA1");
                }
            }
            return rs;
        }
    }
}